package net.xiaosaguo.mymall.auth.feign;

import net.xiaosaguo.common.utils.R;
import net.xiaosaguo.mymall.auth.vo.UserLoginVO;
import net.xiaosaguo.mymall.auth.vo.UserRegisterVO;
import net.xiaosaguo.mymall.auth.vo.WeiboSocialUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * description: 会员远程服务
 *
 * @author xiaosaguo
 * @date 2020/07/05
 */
@FeignClient("mymall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVO vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVO vo);

    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody WeiboSocialUser vo);
}
